function getXmlHttpPrefix() {
	if (getXmlHttpPrefix.prefix)
		return getXmlHttpPrefix.prefix;

	var prefixes = ["MSXML3", "MSXML2", "MSXML", "Microsoft"];
	var o;
	for (var i = 0; i < prefixes.length; i++) {
		try {
			// try to create the objects
			o = new ActiveXObject(prefixes[i] + ".XmlHttp");
			return getXmlHttpPrefix.prefix = prefixes[i];
		}
		catch (ex) {};
	}

	throw new Error("Could not find an installed XML parser");
}

function BClient_HYGL_CheckConflict()
{
    var isConflict = "false";
  var tXML=new GnctXML();

    tXML.clearElement();
    tXML.createFormHeard("FieldFrm");
    tXML.CreateValueObject("FieldFrm","OrgVO");
    tXML.CreateFieldResult("FieldFrm","OrgVO","R0");

 /*
    调用Sta模快的XML对象检测冲突
   */
  //var parserXML=new ParserXML();
  var xmlhttp=new ActiveXObject(getXmlHttpPrefix()+".XmlHttp");
  var xmlHead="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
  //xmlHead+tXML.showStr(), "xmlStr");
  /*
   *装载数据
  */

  //parserXML.("/serviceLocator?action=checkMeetRoomConflict&xmlStr="+xmlHead+tXML.showStr());
  var url = "/serviceLocator?action=checkMeetRoomConflict&resourceID="+resID;

  xmlhttp.open("GET", url, false);  //同步方式进行
  xmlhttp.send();
  isConflict =xmlhttp.ResponseText;
  /*
  *执行扩展工作
  */
/*
  parserXML.extendWork=function()
  {
    var rsCount=parserXML.getRsCount();
    //document.all('personCountb').innerHTML = "(<font color=red>约"+parserXML.getFieldValueByIndex(0,"personCount")+"人</font>);";
    isConflict=parserXML.getFieldValueByIndex(0,"isConflict");
    if (isConflict == "true" && !confirm("会议室有冲突，是否继续？"))
        return false;
     else
        return false;
  }
*/

if (isConflict == "true" && !confirm("会议室有冲突，是否继续？"))
     return false;
 return true;
}
